package pl.jtb.ctl.tabory.ui.re.ui.tr;

import org.apache.log4j.Logger;
import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.jface.layout.GridLayoutFactory;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.Section;
import org.eclipse.ui.part.ViewPart;

public class VagonTripReportEditor extends ViewPart {

    public final static String ID = "pl.jtb.ctl.tabory.ui.re.ui.tr.VagonTripReportEditor";
    private final Logger log = Logger.getLogger(VagonTripReportEditor.class);

    public VagonTripReportEditor() {
    }

    @Override
    public void createPartControl(Composite parent) {
        GridLayoutFactory.fillDefaults().numColumns(1).margins(3, 3).applyTo(parent);
        FormToolkit toolkit = new FormToolkit(Display.getCurrent());
        VagonTripReportSection section = new VagonTripReportSection(parent, toolkit, Section.NO_TITLE);
        GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, true).applyTo(section.getSection());
    }

    @Override
    public void setFocus() {
    }

}
